//时间
var tempTime = {};
var min_sec;
var whole_time;
var hours_min;
var whole_day;
var year_mon_day;
var mon_day_time;
var mon_day;
var whole_time_horiz;
var vote_detail_time;
function initDate(date) {
    tempTime = {
        year: date.getFullYear(),
        month: (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1),
        day: date.getDate() < 10 ? '0' + date.getDate() : date.getDate(),
        hours: date.getHours() < 10 ? '0' + date.getHours() : date.getHours(),
        min: date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes(),
        sec: date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds(),
    };
    whole_time = tempTime.year + "." + tempTime.month + "." + tempTime.day + " " + tempTime.hours + ":" + tempTime.min;
    whole_day = tempTime.year + "." + tempTime.month + "." + tempTime.day;
    hours_min = tempTime.hours + ":" + tempTime.min;
    min_sec = tempTime.min + ":" + tempTime.sec;
    year_mon_day = tempTime.year + "-" + tempTime.month + "-" + tempTime.day;
    whole_time_horiz = tempTime.year + "-" + tempTime.month + "-" + tempTime.day+" " + tempTime.hours + ":" + tempTime.min;
    mon_day_time=tempTime.month + "-" + tempTime.day+" "+hours_min;
    mon_day=tempTime.month + "." + tempTime.day;
    mon_day_cn=tempTime.month + "月" + tempTime.day + "日";
    vote_detail_time = tempTime.year + "-" + tempTime.month + "-" + tempTime.day+" " + tempTime.hours + ":" + tempTime.min+ ":" + tempTime.sec;
}

